<?php


class Headline2Table extends Doctrine_Table
{ 
  public static function getInstance()
  {
    return Doctrine_Core::getTable('Headline2');
  }
  
  public function getBackendListQuery(Doctrine_Query $query)
  {
    $rootAlias = $query->getRootAlias();
  
    $query->innerJoin("$rootAlias.parent p")
      ->innerJoin('p.area a');
  }
}